package com.shopping.service.impl;

import java.util.ArrayList;

import com.shopping.dao.OrderDao;
import com.shopping.dao.impl.OrderDaoImpl;
import com.shopping.pojo.Order;
import com.shopping.pojo.User;
import com.shopping.service.OrderService;

public class OrderServiceImpl implements OrderService{

	private OrderDao od = new OrderDaoImpl();
	@Override
	public ArrayList<Order> getFindAll() {
		return od.findAll();
	}

	@Override
	public boolean addOrder(Order order) {
		return od.insertOrder(order);
	}

	@Override
	public ArrayList<Order> getOrderPage(int page, int limit) {
		return od.findPage(page, limit);
	}

	@Override
	public long getTotalData() {
		return od.TotalData();
	}

	@Override
	public boolean updateOrder(Order order) {
		return od.update(order);
	}

	@Override
	public boolean deleteOrder(long id) {
		return od.delete(id);
	}
	

	
}
